#!/bin/bash

# VirtualBox + VMWare = bad
while [ "`ps -A | grep vmware-vmx`" ]
do
    echo 'VirtualBox and VMWare are incompatible. Please close VMWare before starting VirtualBox.'
    sleep 1
done

# The run command uses a UUID
SYS_END="sleep 5 ; VBoxManage controlvm $SYS_UUID poweroff ; sleep 5 ; VBoxManage snapshot $SYS_UUID discardcurrent -state"
SYS_RUN="$SYS_END ; sleep 5 ; VBoxManage startvm $SYS_UUID"
